package fr.upmc.i3s.avcHMI.view;

import javax.swing.JPanel;
import javax.swing.SpringLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JTextField;

public class ComputeMenu extends JPanel {
	private JTextField textField;
	private JTextField textField_1;

	/**
	 * Create the panel.
	 */
	public ComputeMenu() {
		SpringLayout springLayout = new SpringLayout();
		setLayout(springLayout);
		
		JLabel lblNewLabel = new JLabel("Fichier annalys\u00E9e :");
		add(lblNewLabel);
		
		textField = new JTextField();
		springLayout.putConstraint(SpringLayout.NORTH, textField, 62, SpringLayout.NORTH, this);
		springLayout.putConstraint(SpringLayout.SOUTH, lblNewLabel, -6, SpringLayout.NORTH, textField);
		springLayout.putConstraint(SpringLayout.WEST, textField, 52, SpringLayout.WEST, this);
		springLayout.putConstraint(SpringLayout.EAST, textField, 325, SpringLayout.WEST, this);
		add(textField);
		textField.setColumns(10);
		
		JLabel lblNewLabel_1 = new JLabel("Modelisation :");
		springLayout.putConstraint(SpringLayout.WEST, lblNewLabel_1, 29, SpringLayout.WEST, this);
		springLayout.putConstraint(SpringLayout.WEST, lblNewLabel, 0, SpringLayout.WEST, lblNewLabel_1);
		springLayout.putConstraint(SpringLayout.NORTH, lblNewLabel_1, 39, SpringLayout.SOUTH, textField);
		add(lblNewLabel_1);
		
		textField_1 = new JTextField();
		springLayout.putConstraint(SpringLayout.NORTH, textField_1, 6, SpringLayout.SOUTH, lblNewLabel_1);
		springLayout.putConstraint(SpringLayout.WEST, textField_1, 0, SpringLayout.WEST, textField);
		springLayout.putConstraint(SpringLayout.EAST, textField_1, 0, SpringLayout.EAST, textField);
		add(textField_1);
		textField_1.setColumns(10);
		
		JButton btnStart = new JButton("Start");
		springLayout.putConstraint(SpringLayout.SOUTH, btnStart, -45, SpringLayout.SOUTH, this);
		springLayout.putConstraint(SpringLayout.EAST, btnStart, -153, SpringLayout.EAST, this);
		add(btnStart);

	}
}
